package com.github.demo.aop.aspect;

import com.github.jsoncat.annotation.aop.*;
import com.github.jsoncat.annotation.ioc.Component;
import com.github.jsoncat.core.aop.lang.JoinPoint;
import lombok.extern.slf4j.Slf4j;

@Aspect
@Order(value = 2)
@Slf4j
@Component
public class StudentAspect {

    @Pointcut("com.github.demo.*.*StudentService*")
    public void perAspect() {

    }

    @Before
    public void beforeAction(JoinPoint joinPoint) {
        log.info("aspect student before to do something");
    }

    @After
    public void afterAction(Object result, JoinPoint joinPoint) {
        log.info("aspect student after to do something");
    }

}
